Skip to content

test: add unit test suite for core utility modules#27

Merged
Yif-Yang merged 1 commit into
microsoft:mainfrom
Oxygen56:test/add-core-utility-tests
Jun 1, 2026
Merged

test: add unit test suite for core utility modules#27
Yif-Yang merged 1 commit into
microsoft:mainfrom
Oxygen56:test/add-core-utility-tests

Conversation

@Oxygen56
Copy link
Copy Markdown

@Oxygen56 Oxygen56 commented May 31, 2026

Summary

Adds initial test infrastructure for SkillOpt with unit tests covering:

  • skillopt/utils/scoring.py — compute_score and skill_hash
  • skillopt/utils/json_utils.py — extract_json and extract_json_array
  • skillopt/types.py — Edit, Patch dataclass serialization round-trip

These utility modules are pure functions with deterministic behavior, making them ideal starting points for test coverage. All tests pass without requiring any external API keys or LLM services.

Test Plan

  • pytest tests/ -v — all tests pass
  • No regressions in existing functionality

Add initial test infrastructure covering:
- skillopt/utils/scoring.py (compute_score, skill_hash)
- skillopt/utils/json_utils.py (extract_json, extract_json_array)
- skillopt/types.py (Edit, Patch dataclass serialization)

All tested functions are pure/deterministic with no LLM dependencies.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Yif-Yang Yif-Yang merged commit 47063e1 into microsoft:main Jun 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants